package co.legu.carpool.common.annotation;

import co.legu.modules.auth.annotation.Permission;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 仅限产调人员调用的接口
 */
@Target({ METHOD, TYPE })
@Retention(RUNTIME)
@Documented
@Permission("userType.user")
public @interface UserOnly {}
